---
title: createAI
description: Reference for the createAI function from the AI SDK RSC
---

# `createAI`

Creates a client-server context provider that can be used to wrap parts of your application tree to easily manage both UI and AI states of your application.

## Import

<Snippet text={`import { createAI } from "ai/rsc"`} prompt={false} />

<ReferenceTable packageName="rsc" functionName="createAI" />

## Examples

<ExamplesList packageName="rsc" functionName="createAI" />
